package com.sl.au.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 商户举报
 * 
 * @author heguangchuan
 *
 */
@Entity
@Table(name = "sl_dcms__accusation")
public class BussinessAccusation extends Root{

	// 举报原因
	private String accusationReason;

	// 举报人
	@ManyToOne
	@JoinColumn(name = "userId")
	private User user;
	// 举报时间
	private Date accusationDate;
	
	@ManyToOne 
	@JoinColumn(nullable = true)
	private Option accusationType;//举报类型
	
	@ManyToOne 
	@JoinColumn(nullable = true)
	private Option resultType;//受理结果
	
	@ManyToOne 
	@JoinColumn(nullable = true)
	private Option infoState;//受理状态
	
	
	
	@ManyToOne
	@JoinColumn(nullable = true)//受理人
	private User rUser;
	
	@Column(nullable = true)
	private double accusationScale;//满意度
	
	@Column(nullable = true)
	private String memo;//处理结果意见
	
	//举报证据 [图片]
	private String pictureAddr;
	
	
	public String getPictureAddr() {
		return pictureAddr;
	}

	public void setPictureAddr(String pictureAddr) {
		this.pictureAddr = pictureAddr;
	}

	// 商户
	@ManyToOne
	@JoinColumn(name="bussinessId")
	private BusinesssellerBaseInfo businesssellerBaseInfo;

	
	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Option getResultType() {
		return resultType;
	}

	public void setResultType(Option resultType) {
		this.resultType = resultType;
	}

	public Option getInfoState() {
		return infoState;
	}

	public void setInfoState(Option infoState) {
		this.infoState = infoState;
	}

	public User getrUser() {
		return rUser;
	}

	public void setrUser(User rUser) {
		this.rUser = rUser;
	}

	public Option getAccusationType() {
		return accusationType;
	}

	public void setAccusationType(Option accusationType) {
		this.accusationType = accusationType;
	}

	public double getAccusationScale() {
		return accusationScale;
	}

	public void setAccusationScale(double accusationScale) {
		this.accusationScale = accusationScale;
	}

	public String getAccusationReason() {
		return accusationReason;
	}

	public void setAccusationReason(String accusationReason) {
		this.accusationReason = accusationReason;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getAccusationDate() {
		return accusationDate;
	}

	public void setAccusationDate(Date accusationDate) {
		this.accusationDate = accusationDate;
	}

	public BusinesssellerBaseInfo getBusinesssellerBaseInfo() {
		return businesssellerBaseInfo;
	}

	public void setBusinesssellerBaseInfo(BusinesssellerBaseInfo businesssellerBaseInfo) {
		this.businesssellerBaseInfo = businesssellerBaseInfo;
	}

}
